﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._22._1
{
    class DeliveryRobot:Robot
    {
        private string hour;

        public string Hour { get => hour; set => hour = value; }

        public DeliveryRobot(string name, string hour) : base(name) {
            this.hour = hour;
        }

        public override void Wroking()
        {
            Console.WriteLine("我是{0}，工作时长{1}",this.name,this.hour);
        }
    }
}
